package com.tsd.system.dao;

import com.tsd.core.vo.PageBean;
import com.tsd.system.entity.SysDataAuth;
import com.tsd.system.entity.SysDataAuthExt;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 描述：SysDataAuthMapper
 *
 * @author admin
 * @date 2022/11/15 15:12:57
 */
public interface SysDataAuthMapper {

    SysDataAuth selectByPrimaryKey(Long id);

    SysDataAuthExt selectBySid(String sid);

    int deleteByPrimaryKey(Long id);

    int insert(SysDataAuth record);

    int insertSelective(SysDataAuth record);

    int updateByPrimaryKey(SysDataAuth record);

    int updateByPrimaryKeySelective(SysDataAuth record);

    int insertList(@Param("list") List<SysDataAuthExt> list);

    int updateList(@Param("list") List<SysDataAuthExt> list);

    List<SysDataAuthExt> selectByEntity(SysDataAuthExt record);

    List<SysDataAuthExt> selectByPage(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<SysDataAuthExt> selectCount1Page(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<SysDataAuthExt> selectByParams(@Param("params") Map<String, Object> params);

    List<SysDataAuthExt> select4UserByParams(@Param("params") Map<String, Object> params);

    List<SysDataAuthExt> select4UserPermission(@Param("user_sid") String user_sid);

    List<SysDataAuthExt> select4UserDataFieldAuth(@Param("user_sid") String user_sid);
}